package com.dhsc.controller.xtqxgl;

import com.dhsc.domain.ywzx.xtqxgl.TsglVo;
import com.dhsc.domain.yypt.LayuiTableVo;
import com.dhsc.domain.yypt.ResponseObject;
import com.dhsc.service.xtqxgl.ITsglService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName: TsglController
 * @Description: 用户特殊管理
 * @date: 2023/9/11 13:11
 * @author: gx
 */
@Controller
@RequestMapping("/xtqxgl")
public class TsglController {

    @Autowired
    private ITsglService tsglService;

    /**
    * @Title: queryTsgl
    * @Description: 查询用户特殊管理
    * @Param: tsglVo
    * @return: LayuiTableVo
    * @Author: gx
    * @Date: 2023/11/3 16:31
    */
    @ResponseBody
    @RequestMapping(value="/queryTsgl")
    public LayuiTableVo queryTsgl(TsglVo tsglVo){
        return tsglService.queryTsgl(tsglVo);
    }

    /**
     * @Title: saveTsgl
     * @Description: 保存用户特殊管理
     * @Param: tsglVo
     * @return: ResponseObject
     * @Author: gx
     * @Date: 2023/11/6 10:23
     */
    @ResponseBody
    @RequestMapping(value="/saveTsgl")
    public ResponseObject saveTsgl(TsglVo tsglVo){
        return tsglService.saveTsgl(tsglVo);
    }

    /**
     * @Title: deleteTsgl
     * @Description: 删除特殊管理
     * @Param: tsglVo
     * @return: ResponseObject
     * @Author: gx
     * @Date: 2023/11/6 13:33
     */
    @ResponseBody
    @RequestMapping(value="/deleteTsgl")
    public ResponseObject deleteTsgl(TsglVo tsglVo){
        return tsglService.deleteTsgl(tsglVo);
    }

    /**
    * @Title: queryTsryxm
    * @Description: 查询特殊人员姓名
    * @Param: tsglVo
    * @return: ResponseObject
    * @Author: gx
    * @Date: 2023/11/6 15:31
    */
    @ResponseBody
    @RequestMapping(value="/queryTsryxm")
    public ResponseObject queryTsryxm(TsglVo tsglVo){
        return tsglService.queryTsryxm(tsglVo);
    }
}
